package com.xls.future;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

import java.util.Timer;
import java.util.TimerTask;

public class MyService extends Service {

    private Timer timer;
    private int count=0;

    @Override
    public void onCreate() {
        super.onCreate();
        Log.d("home","MyService onCreate groupData.size = "+FutureApp.getInst().getGroups());
        timer = new Timer();
        /*timer.schedule(new TimerTask() {
            @Override
            public void run() {
                Log.d("home","timer--------"+count++);
            }
        },0,2000);*/

    }

    public MyService() {
        Log.d("home","MyService MyService");
    }

    @Override
    public IBinder onBind(Intent intent) {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.d("home","MyService onStartCommand");
        return START_STICKY;
    }


}
